<template>
  <el-card>
    <template #header>
      <div>useToggle【类似useBoolean】</div>
    </template>
    <div>{{ flag }}</div>
    <br />
    <div>
      <p>
        <el-button style="margin-left: 16px" @click="() => toggle()">
          toggle
        </el-button>
      </p>
    </div>
  </el-card>
</template>

<script setup>
  import { useToggle } from "vue-hooks-plus";

  const [flag, { toggle }] = useToggle("李荣浩", "“苍井空”");
</script>
